<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
class PHPExcel_CalcEngine_Logger
{
    private $writeDebugLog = false;
    private $echoDebugLog = false;
    private $debugLog = [];
    private $cellStack;
    public function __construct(PHPExcel_CalcEngine_CyclicReferenceStack $stack)
    {
        $this->cellStack = $stack;
    }
    public function setWriteDebugLog($pValue = false)
    {
        $this->writeDebugLog = $pValue;
    }
    public function getWriteDebugLog()
    {
        return $this->writeDebugLog;
    }
    public function setEchoDebugLog($pValue = false)
    {
        $this->echoDebugLog = $pValue;
    }
    public function getEchoDebugLog()
    {
        return $this->echoDebugLog;
    }
    public function writeDebugLog()
    {
        if($this->writeDebugLog) {
            $message = implode(func_get_args());
            $cellReference = implode(" -> ", $this->cellStack->showStack());
            if($this->echoDebugLog) {
                echo $cellReference;
                echo 0 < $this->cellStack->count() ? " => " : "";
                echo $message;
                echo PHP_EOL;
            }
            $this->debugLog[] = $cellReference . (0 < $this->cellStack->count() ? " => " : "") . $message;
        }
    }
    public function clearLog()
    {
        $this->debugLog = [];
    }
    public function getLog()
    {
        return $this->debugLog;
    }
}

?>